{include app:admin.inc.header}
<!--tmpl-resource-->
{include app:admin.inc.top}

<style>
    a.remind-tag {
        padding: 3px 5px;
        margin:3px;
        color: #46799b;
        background: #e0eaf1;
        white-space: nowrap;
        overflow: hidden;
        cursor: pointer;
        border-radius: 2px 0 0 2px;
    }
</style>
<div class="container-fluid content-body">
    <div class="main">
        <!-- left side start-->
        {include admin.inc.menu}
        <!-- left side end-->


        <!-- main content start-->
        <section class="right-section" id="right-section">
            <!-- start of inner-frame -->
            <div class="inner-iframe">

                <!-- page breadcrumb start-->
                {include admin.inc.bread}
                <!-- page "breadcrumb end-->
                <!-- Nav tabs -->
                <ul class="nav nav-tabs">
                    <li><a href="add"><i class="glyphicon glyphicon-plus"></i> 添加短信</a></li>

                    <li><a href="{$index_url}"><i class="glyphicon glyphicon-th-list"></i> 短信列表</a></li>
                    <!--<li><a href="ruleAdd"><i class="glyphicon glyphicon-plus"></i> 添加规则</a></li>-->
                    <li><a href="ruleIndex"><i class="glyphicon glyphicon-th-list"></i> 规则列表</a></li>
                    <li {if $id==''}class="active"{/if}><a {if
                                                           $id==''}href="javascript:void(0);"{else}href="{$add_url}"{/if}><i
                            class="glyphicon glyphicon-plus"></i> 添加模板</a></li>

                    <li><a href="tmplIndex"><i class="glyphicon glyphicon-th-list"></i> 模板列表</a></li>

                </ul>
                <div class="inner-container">
                    <form role="form" class="form-horizontal basicForm content-add-form" id="content-add-form"
                          autocomplete="off">


                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="asterisk">*</span>模板名称</label>
                            <div class="col-sm-4">

                                <input type="text" class="form-control" name="data[name]" value="" required cname="模板名称">

                            </div>
                            <p class="help-block"></p>

                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="asterisk">*</span>模板内容 </label>
                            <div class="col-sm-4">

                            <textarea dtype="" class="form-control" maxlength="255" id='content'name="data[content]"
                                      placeholder="模板内容" required cname="模板内容"
                                      value="">{$item[content]}</textarea>
                            </div>
                            <p class="help-block"></p>

                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">模板标签</label>
                            <div class="col-sm-4">
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{平台名称}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{验证码}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{手机号}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{新会员手机号}</span></a>

                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{会员账号}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{会员昵称}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{订单号}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{收货人}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{收货地址}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{送货人姓名}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{送货人手机号码}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{送货车辆牌号}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{送货人身份证}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{送货日期}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{配送方式}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{付款金额}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{订单金额}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{订单优惠}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{发货时间}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{下单时间}</span></a>
                                <a href="javascript:void(0);" class="remind-tag js-tag"><span>{付款时间}</span></a>
                            </div>

                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="asterisk">*</span>状态</label>
                            <div class="col-sm-8">
                                <div class="rdio rdio-default">
                                    <input type="radio" name="data[status]" value="0" id="radio1"
                                           >
                                    <label for="radio1">禁用</label>
                                </div>
                                <div class="rdio rdio-primary">
                                    <input type="radio" name="data[status]" value="1" id="radio2" checked="checked">
                                    <label for="radio2">启用</label>
                                </div>
                            </div>

                        </div>



                        <div class="btn-group btn-group-or">
                            <a href="./do_addTmpl"
                               class="btn btn-primary ajaxproxy"
                               proxy='{"method":"post", "location":"tmplIndex"}'>提交保存</a>

                        </div>
                    </form><!-- content add form -->
                </div>
            </div><!-- end of inner -->
        </section>
    </div>
</div>
{include admin.inc.footer}

<!--tmpl-script-->

<!-- pagescript -->
<script type="text/javascript">
    seajs.use("admin/message_remindadd", function (parameter) {


        parameter.upload_url = "{$upload_url}";
        parameter.image_search_url = "{$image_search_url}";
        parameter.image_list_url = "{$image_list_url}";

        parameter.init();
    });
</script>


<script id="assocpage" type="text/html">
    <div class="text-right">
        <ul class="pagination blog-pagination">
            <li><a class="assoc-page" data-page="{[prev]}" href="javascript:void(0);">上一页</a></li>
            {[loop pages page]}

            <li><a class="assoc-page" data-page="{[page]}" {[if curr== page]}class="active" {[/if]}
                href="javascript:void(0)">{[page]}</a></li>

            {[/loop]}
            <li><a class="assoc-page" href="javascript:void(0);" data-page="{[nexts]}">下一页</a></li>
        </ul>
    </div>
</script>

</body>
</html>
